package com.xzzz.irda.tracker.core.adapter.gateway;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(value = GlobalFilter.class)
public class TrackerGatewayConfiguration {

    @Bean
    public TrackerGlobalFilter trackerGlobalFilter() {
        return new TrackerGlobalFilter();
    }
}
